﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    public class OrderingModel
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public long orderId { get; set; }

        /// <summary>
        /// 是否打印
        /// </summary>
        public int isPrint { get; set; }

        /// <summary>
        /// 桌台Id
        /// </summary>
        public long deskId { get; set; }

        /// <summary>
        /// 订单明细
        /// </summary>
        public List<OrderingItem> items { get; set; }

        public corecmsuser orderMember { get; set; }

    }

    /// <summary>
    /// 请求实体
    /// </summary>
    public class OrderingItem
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public long orderId { get; set; } = 0;

        /// <summary>
        /// 商品Id
        /// </summary>
        public long foodId { get; set; }

        /// <summary>
        /// 退菜数量
        /// </summary>
        public decimal quantity { get; set; }

        /// <summary>
        /// 规格明细
        /// </summary>
        public object specIds { get; set; }

        /// <summary>
        /// 做法明细
        /// </summary>
        public object taskIds { get; set; }

        /// <summary>
        /// 加料明细
        /// </summary>
        public object feedIds { get; set; }

        /// <summary>
        /// 批次Id
        /// </summary>
        public long batchId { get; set; } = 0;

        /// <summary>
        /// 是否打包
        /// </summary>
        public int isParcel { get; set; }

        /// <summary>
        /// 是否等叫
        /// </summary>
        public int isAwait { get; set; } = 0;

        /// <summary>
        /// 是否赠送
        /// </summary>
        public int isPresent { get; set; } = 0;

        /// <summary>
        /// 类型
        /// </summary>
        public int itemType { get; set; } = 1;

        /// <summary>
        /// 来源Id
        /// </summary>
        public long sourceId { get; set; } = 0;

        /// <summary>
        /// 套餐主菜id
        /// </summary>
        public long foodPackId { get; set; } = 0;

        /// <summary>
        /// 套餐数量
        /// </summary>
        public Decimal foodPackQuantity { get; set; }

        public List<corecmsfoodgradeprice> gradePriceList = new List<corecmsfoodgradeprice>();
    }
}
